package cn.xinfei.xdecision.common.dao.enginex;

import cn.xinfei.xdecision.common.model.enginex.po.Engine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface EngineMapper extends BaseMapper<Engine> {

    List<Engine> getEngineListWithVersion(@Param("searchString") String searchString, @Param("orgIdList") List<Long> orgIdList);

    /**
     * @param searchCon          查询条件
     * @param versionStatus      版本状态
     * @param excludeEngineCodes 排除子引擎code
     */
    List<Engine> getEngineListWithVersionStatus(@Param("orgIdList") List<Long> orgIdList,
                                                @Param("searchCon") String searchCon,
                                                @Param("versionStatus") Integer versionStatus,
                                                @Param("excludeEngineCodes") Set<String> excludeEngineCodes);
}
